package cn.felord.debezium.common;

import org.apache.mina.core.session.IoSession;

import java.net.Socket;
import java.util.HashMap;
import java.util.HashSet;

public class Watch {
    public static boolean isRun = false;
    public static boolean isFirstConnect = false; //是否第一次连接
    public static HashSet<Socket> pools = new HashSet<>();

    public static HashMap<String, IoSession> poolsHash = new HashMap<>();

//    public static  HashMap<String,String> equipMentIp = new HashMap<>();//设备名称：ip

    public static String IO_CONFIRM_CODE = "10";//设置和确认功能码10
    public static String QUERY_CODE = "03";//查询功能码03

    public static String START_CODE00 = "0000";//质检
    public static String START_CODE01 = "0100";//物料添加
    public static String START_CODE02 = "0200";//设备绑定
    public static String START_CODE03 = "0300";//无线参数配置
    public static String START_CODE04 = "0400";//元素标准设置
    public static String START_CODE05 = "0500";//产前标准设置
    public static String START_CODE06 = "0600";//产后标准设置

    public static String ONLY_WARN = "FFFF";//单纯报警
    public static String NORMAL = "0000";//正常 属于产中
    public static String GTJT = "0001";//产中
    public static String BEFOR = "0002";//产前
    public static String YYJ = "0003";//孕育剂
    //            00 00（正常加料）
    //            00 01 （高碳降碳）
    //            00 02（产前加料）
    //            00 03（孕育剂）
    public static String UP_MODEL_WIFI = "00000001";//无线参数 上传模式
    public static String UP_MODEL_LORA = "00000002";//无线参数 上传模式
    public static String UP_MODEL_4G = "00000003";//无线参数 上传模式

    public static String SCAL_C3 = "0001";//精度
    public static String SCAL_C6 = "0002";//精度


}
